package aiingames.simulation.network;

public class Link {

	
	private Node fromNode;
	private Node toNode;
	private double cost;

	Link(Node fromNode, Node toNode) {
		this.fromNode = fromNode;
		this.toNode = toNode;
		this.cost = fromNode.getCoordinate().distance(toNode.getCoordinate());
	}
	
	
	public double getLinkCost() {
		return this.cost;
	}
	
	public Node getToNode() {
		return this.toNode;
	}
	
	public Node getFromNode() {
		return this.fromNode;
	}
}
